package de.hs_mannheim.visualscheduler.scheduling;

import java.util.Comparator;
import de.hs_mannheim.visualscheduler.scheduling.AbstractScheduler.Process;

public class TimeLeftComparator implements Comparator<Process>{
	public static final TimeLeftComparator INSTANCE = new TimeLeftComparator();
	
	private TimeLeftComparator() {
		// Hide the constructor
	}
	
	@Override
	public int compare(Process o1, Process o2) {
		return o1.getTimeleft() - o2.getTimeleft();
	}
}
